/*
 * Created by IntelliJ IDEA.
 * User: amrk
 * Date: 15/03/2004
 * Time: 23:32:35
 */
package com.talios.jira.feeds;

public class SingleIssueFeedBuilder extends ProjectFeedBuilder {
    private String issueKey;

    public SingleIssueFeedBuilder(String issueKey) {
        this.issueKey = issueKey;
    }

    public String buildRssFeedUrl(boolean includeUserDetails) {
        StringBuffer buf = new StringBuffer();
        buf.append(serverDetails.getBaseurl());

        buf.append("/browse/");
        buf.append(issueKey);
        buf.append("?view=rss&decorator=none");

        addUserDetailsToStringBuffer(includeUserDetails, buf);

        return buf.toString();
    }

    public String getSearchFor() {
        return issueKey;
    }
}